<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%> 
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  
  <body>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="audit_welcome.html">核赔中心</a>
        <a href="audit_welcome.html">案件管理</a>
         <a>
          <cite>复核案件</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
          <input type="text" name="username"  placeholder="请输入关键字" autocomplete="off" class="layui-input">
          <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
      </div>
      <table class="layui-table">
        <thead>
          <tr>
            <td align="center">报案号</td>
            <td align="center">车牌号</td>
            <td align="center">委托公司</td>
            <td align="center">查勘人</td>
            <td align="center">报案时间</td>
            <td align="center">处理时间</td>
            <td align="center">状态</td>
            <td align="center">操作</td>
        </thead>
        <tbody>
        <c:if test="${not empty requestScope.pageInfo.list}">
        <c:forEach var="report" items="${pageInfo.list}">
         
         <tr>
            <td align="center">${report.reportNo}</td>
            <td align="center">${report.num2}</td>
            <td align="center">${report.companyName}</td>
            <td align="center">${report.num1}</td>
            <td align="center"><fmt:formatDate value="${report.reportTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
            <td align="center"><fmt:formatDate value="${report.dangerTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
            <td class="td-status" align="center">
              <span class="layui-btn layui-btn-normal layui-btn-mini"  align="center">待审核</span></td>
            <td class="td-manage" align="center">
              <a title="详情"  onclick="x_admin_show('详情','audit_edit.html?reportInfoNo=${report.reportNo}')" href="javascript:;">
                <i class="layui-icon">&#xe705;</i>
            </td>
          </tr>
         
         
         </c:forEach>
         	</c:if>
        
          
        </tbody>
      </table>
      <div class="page">
        <div>共 ${pageInfo.pages} 页.共 ${pageInfo.total} 条记录
          <nav aria-label="Page navigation">
                <ul class="pagination">
                    
                    <li><a href="${pageContext.request.contextPath}/audit_return.html?pn=1">首页</a></li>
                    
                    <!--上一页-->
                    <li>
                        <c:if test="${pageInfo.hasPreviousPage}">
                            <a href="${pageContext.request.contextPath}/audit_return.html?pn=${pageInfo.pageNum-1}" aria-label="Previous">
                                <span aria-hidden="true">«</span>
                            </a>
                        </c:if>
                    </li>
 
                    <!--循环遍历连续显示的页面，若是当前页就高亮显示，并且没有链接-->
                    <c:forEach items="${pageInfo.navigatepageNums}" var="page_num">
                        <c:if test="${page_num == pageInfo.pageNum}">
                            <li class="active"><a href="#">${page_num}</a></li>
                        </c:if>
                        <c:if test="${page_num != pageInfo.pageNum}">
                            <li><a href="${pageContext.request.contextPath}/audit_return.html?pn=${page_num}">${page_num}</a></li>
                        </c:if>
                    </c:forEach>
 
                    <!--下一页-->
                    <li>
                        <c:if test="${pageInfo.hasNextPage}">
                            <a href="${pageContext.request.contextPath}/audit_return.html?pn=${pageInfo.pageNum+1}"
                               aria-label="Next">
                                <span aria-hidden="true">»</span>
                            </a>
                        </c:if>
                    </li>
                    
                    <li><a href="${pageContext.request.contextPath}/audit_return.html?pn=${pageInfo.pages}">尾页</a></li>
                </ul>
            </nav>
        </div>
        
      </div>

    </div>
    <script>
      layui.use('laydate', function(){
        var laydate = layui.laydate;
        
        //执行一个laydate实例
        laydate.render({
          elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
          elem: '#end' //指定元素
        });
      });

       /*用户-停用*/
      function member_stop(obj,id){
          layer.confirm('确认要提交审核吗？',function(index){

              if($(obj).attr('title')=='审核'){

                //发异步把用户状态进行更改
                $(obj).attr('title','停用')
                $(obj).find('i').html('&#xe62f;');

                layer.msg('已提交!',{icon: 1,time:1000});
                $(obj).parents("tr").remove();
              }
              
          });
      }

      /*用户-删除*/
      function member_del(obj,id){
          layer.confirm('确认要退回吗？',function(index){
              //发异步删除数据
              
              layer.msg('已退回!',{icon:5,time:1000});
              $(obj).parents("tr").remove();
          });
      }



     
    </script>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>